import request from '@/utils/request'



export function getInfo() {
    return request({
        url: '/sys/user/info',
        method: 'get',
        params: {}
    })
}

export function getMenu() {
    return request({
        url: '/sys/user/menu',
        method: 'get',
        params: {}
    })
}

export function logout() {
    return request({
        url: '/sys/user/logout',
        method: 'post'
    })
}

export function getList(data, params) {
    return request({
        url: '/employee/info',
        method: 'get',
        data,
        params
    })
}

export function saveData(data) {
    return request({
        url: '/employee/add',
        method: 'post',
        data
    })
}

export function getUserByRole(data) {
    return request({
        url: '/sys/user/getUserByRole',
        method: 'post',
        data
    })
}

export function deleteUser(data) {
    return request({
        url: '/employee/delete',
        method: 'delete',
        data
    })
}